<?php
declare (strict_types=1);

namespace app\circle\service\admin;

use app\circle\logic\admin\Comment as CommentLogic;
use app\common\service\BaseService;
use think\annotation\Inject;

/**
 * Class Comment
 *
 * @package app\circle\service\admin
 */
class Comment extends BaseService
{

    /**
     * @Inject()
     *
     * @var CommentLogic
     */
    protected $commentLogic;

    /**
     * 删除评论
     * Author: Martinsun <syh@sunyonghong.com>
     * Date: 2021/9/16
     *
     * @param int $id
     * @return \think\Response
     */
    public function delete(int $id)
    {
        $this->commentLogic->deleteComments($id);

        return $this->parseTodata([], 1, '删除成功');
    }
}